package fr.neyb.bernouilli.problem013;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class Entry {

	public static void main(String... args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(
				Entry.class.getResourceAsStream("numbers.txt")));

		BigInteger res = new BigInteger("0");
		String line;

		while ((line = br.readLine()) != null) {
			res = res.add(new BigInteger(line));
		}

		System.out.println(res.toString().substring(0, 10));

	}
}
